// import http from '../request/axios';
import http from 'request/axios';
import { article as Api } from 'request/api';

const articleService = {
    getList(params) {
        return http.get(Api.getList, params);
    },
    getCategory() {
        return http.get(Api.category);
    },
    getTags(params) {
        return http.get(Api.tags, params);
    },
    getById(params) {
        return http.get(Api.getById, params);
    },
    getCommentList(params) {
        return http.get(Api.getCommentList, params);
    },
    addComment(params) {
        return http.post(Api.addComment, params);
    }
};

export default articleService;
